package com.tsd.base.service;

import com.tsd.base.entity.BaseCodeRuleItem;
import com.tsd.base.entity.BaseCodeRuleItemExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseCodeRuleItem服务实现层接口
 *
 * @author zsy
 * @date 2020/12/29 15:22:59
 */
public interface BaseCodeRuleItemService {

    /**
     * 描述：根据id获取BaseCodeRuleItem
     *
     * @param id
     */
    BaseCodeRuleItem getBaseCodeRuleItemById(Long id) throws Exception;

    /**
     * 描述：根据sid获取BaseCodeRuleItem
     *
     * @param sid
     */
    BaseCodeRuleItemExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据id删除BaseCodeRuleItem
     *
     * @param id
     */
    void deleteBaseCodeRuleItem(Long id, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新BaseCodeRuleItem
     *
     * @param record
     * @param opUser
     */
    void saveBaseCodeRuleItem(BaseCodeRuleItem record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询BaseCodeRuleItem
     *
     * @param params
     * @param page
     */
    List<BaseCodeRuleItemExt> findBaseCodeRuleItems(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询BaseCodeRuleItem
     *
     * @param params
     */
    List<BaseCodeRuleItemExt> findBaseCodeRuleItems(Map<String, Object> params) throws Exception;


    /**
     * 批量删除编码规则子项
     *
     * @param idList
     * @param opUser
     * @throws Exception
     */
    void batchDeleteBaseCodeRuleItem(List<Long> idList, SysUser opUser) throws Exception;
}
